package com.ruoyi.keep.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 微信钱包对象 wx_wallet
 * 
 * @author wxy
 * @date 2024-08-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WxWallet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户微信余额 */
    @Excel(name = "用户微信余额")
    private Double balance;

    /** 逻辑删除 */
    private Integer del;

    private CommonUsers commonUsers;  //关联用户表
//    private String nickname;
//    private Long gender;
    private String mobile;
    public CommonUsers getCommonUsers() {
        return commonUsers;
    }

    public void setCommonUsers(CommonUsers commonUsers) {
        this.commonUsers = commonUsers;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBalance(Double balance) 
    {
        this.balance = balance;
    }

    public Double getBalance() 
    {
        return balance;
    }
    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("balance", getBalance())
            .append("del", getDel())
            .toString();
    }
}
